import java.util.Arrays;
import java.util.Scanner;

/**
 * @Author YuanYuan
 * @Date 2022/7/18
 * @Time 14:22
 */
public class TestDemo {
    public static void main(String[] args) {
        int[] arr = {1,7,3,2,6,17,13,22,19};
        //Sort.insertSort(arr);
        //System.out.println(Arrays.toString(arr));
//        int[] arr1 = {5,2,1};
//        for (int i = 0; i < arr1.length; i++) {
//            Sort.shellSort(arr,arr1[i]);
//            System.out.println(Arrays.toString(arr));
//        }
        //System.out.println(Arrays.toString(arr));
        //Sort.selectSort(arr);

        //Sort.selectSort2(arr);
        //Sort.heapSort(arr);
        //Sort.quickSort(arr);
        //Sort.bubbleSort(arr);
        //Sort.mergeSort(arr);
        Scanner scanner = new Scanner(System.in);
        int[] arr1 = new int[20];
//        for (int i = 0; i < 10; i++) {
//            arr1[i] = scanner.nextInt();
//        }
//        int src = scanner.nextInt();
//        System.out.println(Arrays.toString(arr1)+" "+src);
        //Sort.mergeSort1(arr);
//        Sort.countSort(arr);
        while (scanner.hasNextInt()){
            int i = 0;
            arr1[i++]=scanner.nextInt();

        }
        int val = scanner.nextInt();
        System.out.println(Arrays.toString(arr1)+" "+val);
        //System.out.println(Arrays.toString(arr));
    }
}
